//
//  Common.swift
//  weibo
//
//  Created by 王向宁 on 16/5/22.
//  Copyright © 2016年 王向宁. All rights reserved.
//

import UIKit

//屏幕的宽和高
let ScreenWidth = UIScreen.mainScreen().bounds.width
let ScreenHeight = UIScreen.mainScreen().bounds.height


//用户登录授权配置信息
let client_id = "2040292613"
let client_secret = "71bb763f82f60a08149e52a27926543f"
let redirect_uri = "http://www.itheima.com"


let AppErrorTip = "网络君正在睡觉,请稍后再试"


//定义通知的名称
let SwitchRootViewController = "SwitchRootViewController"

func randomColor() -> UIColor {
    let red = CGFloat(random() % 256) / 255.0
    let blue = CGFloat(random() % 256) / 255.0
    let green = CGFloat(random() % 256) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}